#include <stdio.h>

int main(void)
{
	//希望统计班级5个成绩的总成绩和平均分
	int scores[5]={81,82,83,84,85};
	int count = 0;
	int sum=0;
	//int sum1 = scores[0]+scores[1]+scores[2]+scores[3]+scores[4];
	while(count<5){
		sum+=scores[count];
		count++;
	}
	double avgScore = (double)sum/5;
	printf("sum:%d,avgScore:%.2f\n",sum,avgScore);
	return 0;
}
